﻿@model OnlinePharmacyV001.Models.Account

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Account</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.accId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accId)
            @Html.ValidationMessageFor(model => model.accId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accUser)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accUser)
            @Html.ValidationMessageFor(model => model.accUser)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accPass)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accPass)
            @Html.ValidationMessageFor(model => model.accPass)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accFullName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accFullName)
            @Html.ValidationMessageFor(model => model.accFullName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accEmail)
            @Html.ValidationMessageFor(model => model.accEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accBirthday)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accBirthday)
            @Html.ValidationMessageFor(model => model.accBirthday)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accGender)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accGender)
            @Html.ValidationMessageFor(model => model.accGender)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accCreatedDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accCreatedDate)
            @Html.ValidationMessageFor(model => model.accCreatedDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accLastLogin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accLastLogin)
            @Html.ValidationMessageFor(model => model.accLastLogin)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accAddress)
            @Html.ValidationMessageFor(model => model.accAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accPhone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accPhone)
            @Html.ValidationMessageFor(model => model.accPhone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accCompany)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accCompany)
            @Html.ValidationMessageFor(model => model.accCompany)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.rlId, "Role")
        </div>
        <div class="editor-field">
            @Html.DropDownList("rlId", String.Empty)
            @Html.ValidationMessageFor(model => model.rlId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accStatus)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accStatus)
            @Html.ValidationMessageFor(model => model.accStatus)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
